home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / gcore / RCS / gcore.h,v < prev    next >
Encoding:
Text File  |  1989-02-06  |  2.1 KB  |  106 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.1
  10. date     89.02.05.20.50.58;  author mendel;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @The gcore program.
  17. @
  18.  
  19.  
  20.  
  21. 1.1
  22. log
  23. @Initial revision
  24. @
  25. text
  26. @/*
  27.  * gcore.h --
  28.  *
  29.  *    Interfile declartions for the gcore program.
  30.  *
  31.  * Copyright 1989 Regents of the University of California
  32.  * Permission to use, copy, modify, and distribute this
  33.  * software and its documentation for any purpose and without
  34.  * fee is hereby granted, provided that the above copyright
  35.  * notice appear in all copies.  The University of California
  36.  * makes no representations about the suitability of this
  37.  * software for any purpose.  It is provided "as is" without
  38.  * express or implied warranty.
  39.  *
  40.  * $Header: /sprite/lib/forms/RCS/proto.h,v 1.2 89/01/07 04:12:44 rab Exp $ SPRI
  41. TE (Berkeley)
  42.  */
  43.  
  44. #ifndef _GCORE_H
  45. #define _GCORE_H
  46.  
  47. /*
  48.  * Program name used in error messages.
  49.  */
  50. #define    PROGRAM_NAME    "gcore"
  51.  
  52. /*
  53.  * MAX_ARG_STRING_SIZE - Maximum size of a argument string as return 
  54.  *              by FindProcess.
  55.  */
  56. #define    MAX_ARG_STRING_SIZE    1024
  57.  
  58. /*
  59.  * Number of and index assignments in to the segSize array return by 
  60.  * FindProcess.
  61.  */
  62. #define    TEXT_SEG    0
  63. #define    DATA_SEG    1
  64. #define    STACK_SEG    2
  65. #define    NUM_SEGMENTS    3
  66.  
  67.  
  68. /*
  69.  * Sig mask state as returned by FindProcess.
  70.  */
  71.  
  72. #define    SIG_IGNORING 1
  73. #define    SIG_HANDLING 2
  74. #define    SIG_HOLDING  4
  75.  
  76. extern Boolean debug;
  77.  
  78. #include <sys/core.h>
  79.  
  80. /*
  81.  * Possible states return by FindProcess.
  82.  */
  83. #define    NOT_FOUND_STATE    0    /* Could find the process. */
  84. #define    DEBUG_STATE    1    /* Process is in the debug state. */
  85. #define    SUSPEND_STATE    2    /* Process is in the suspend state. */
  86. #define    WAIT_STATE    3    /* Process is in the wait state. */
  87. #define    RUN_STATE    4    /* Process is in the run state. */
  88. #define    UNKNOWN_STATE    5    /* Process in the unknown state. */
  89.  
  90. #define    STATE_NAMES    {\
  91.     "Not found", "Debug", "Suspended", "Wait", "Running", "Unknown"}
  92.  
  93. /*
  94.  * Routine exported from modules.
  95.  */
  96.  
  97. Boolean    AttachProcess();
  98. Boolean DetachProcess();
  99. Boolean ReadStopInfoFromProcess();
  100. int XferSegmentFromProcess();
  101. int FindProcessStatus();
  102. void GetSigMask();
  103.  
  104. #endif
  105. @
  106.